/*
 * @Author: ac98l
 * @Date: 2023-02-10 09:13:21
 * @LastEditors: ac98l
 * @LastEditTime: 2023-03-23 20:52:12
 * @Description: 暂无说明
 */
import request from "@/utils/request";

// 查询商品列表
export function merchandiseManagement(data) {
  return request({
    url: "/commodity/merchandiseManagement",
    method: "post",
    data,
  });
}

// 新增商品
export function listProductst(data) {
  return request({
    url: "/commodity/listProducts",
    method: "post",
    data,
  });
}

// 商品修改
export function editCommodity(data) {
  return request({
    url: "/commodity/editCommodity",
    method: "post",
    data,
  });
}

// 商品删除
export function deleteCommodity(data) {
  return request({
    url: "/commodity/takeDown",
    method: "post",
    data,
  });
}

// 查看商品评价
export function commentList(data) {
  return request({
    url: "/comment/commentList",
    method: "post",
    data,
  });
}
 
// 获取订单列表
export function sellerList(data) {
  return request({
    url: "/order/sellerList",
    method: "post",
    data,
  });
}

// 修改订单
export function editSellerList(data) {
  return request({
    url: "/order/edit",
    method: "post",
    data,
  });
}


// 删除评论
export function commentRemove(data) {
  return request({
    url: "/comment/commentRemove",
    method: "post",
    data,
  });
}

